package string;

public class StartWithDemo {
    public static void main(String[] args) {
        String str="I want to kiss you";
       //java编程思想
        boolean  starts=str.startsWith("I");
        System.out.println(starts);//判断str是否已think开头的
        boolean  lower=str.endsWith("your");
        System.out.println(lower);//判断str是否已your结尾


    }
}
